![]() |
PBCreateDirectoryUnicodeSync |
||||
Header: | Files.h | Carbon status: | Supported | |
Creates a new directory (folder) inside the specified parent directory.
OSErr PBCreateDirectoryUnicodeSync ( FSRefParam *paramBlock );
A pointer to a parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, the parent directory where the new directory is to be created.
On input, the number of Unicode characters in the directory's name.
On input, a pointer to the Unicode name of the new directory.
On input, which catalog info fields to set. This field is optional and may be set to NULL.
On input, the values for catalog info fields to set. This field is optional and may be set to NULL.
On output, a pointer to the FSRef for the directory. This field is optional and may be set to NULL.
On output, a pointer to the FSSpec for the directory. This field is optional and may be set to NULL.
On output, the directory ID of the directory.
You may optionally set catalog information for the new directory using the whichInfo and catalogInfo parameters; this is equivalent to calling FSSetCatalogInfo after creating the directory. If possible, you should set the textEncodingHint in the catalogInfo.
Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)